

import {render,connect} from '../../../../../hrpub/common/frame';
import HrTree from '../../../../../hrpub/common/components/hrTree/index.js'
import TreeAction from '../../actions/tree.js'
import TempAction from '../../actions/temp';



const LeftTreeDom = render({
    actions :{
        treeAction : TreeAction,
        tempAction: TempAction
    }
})(({props, action, state}) => {
    const {main} = props
    
    return(
        <div style={{paddingLeft: '15px'}} className="tree-area">
            <HrTree
                config = {{
                    root :{
                      title : main.json['gx6008-000275'],
                      key : 'root'
                    },
                    onSelect : action.treeAction.onSelect,
                    selectedKeys : main.selectedKeys
                }}
                treeData = {main.treeData} 
            />
        </div>
    )
})   

export default connect(LeftTreeDom)